package com.ntschy.common.core.model;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;

/**
 * 用户登录对象
 *
 * @author ezreal_geng
 */
@ApiModel(description = "用户登录对象")
@Data
public class LoginBody {
    /**
     * 用户名
     */
    @ApiModelProperty(value = "用户名")
    @NotNull(message = "用户名不能为空")
    private String username;

    /**
     * 用户密码
     */
    @ApiModelProperty(value = "密码")
    @NotNull(message = "密码不能为空")
    private String password;

}
